import request from '@/utils/request'

// 查询帖子话题列表
export function listHairPostTopic(query) {
  return request({
    url: '/business/hairPostTopic/list',
    method: 'get',
    params: query
  })
}

// 查询帖子话题详细
export function getHairPostTopic(id) {
  return request({
    url: '/business/hairPostTopic/' + id,
    method: 'get'
  })
}

// 新增帖子话题
export function addHairPostTopic(data) {
  return request({
    url: '/business/hairPostTopic',
    method: 'post',
    data: data
  })
}

// 修改帖子话题
export function updateHairPostTopic(data) {
  return request({
    url: '/business/hairPostTopic',
    method: 'put',
    data: data
  })
}

// 删除帖子话题
export function delHairPostTopic(id) {
  return request({
    url: '/business/hairPostTopic/' + id,
    method: 'delete'
  })
}
